//
//  BtnViewController.m
//  pocketNews
//
//  Created by DS on 2019/3/25.
//  Copyright © 2019 徐双. All rights reserved.
//

#import "BtnViewController.h"
#import "JiXiangViewController.h"

#import "TwoViewController.h"




#import "PlayerVideoViewController.h"

#import "VideoOtherViewController.h"

#import "ThreeViewController.h"

#import "FourViewController.h"

@interface BtnViewController ()



@end

@implementation BtnViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    //self.navigationController.navigationBar.hidden = YES;
    UIButton *btn1 =[[UIButton alloc]initWithFrame:CGRectMake(0,0, 22, 22)];
    
    [btn1 addTarget:self action:@selector(onClick:) forControlEvents:UIControlEventTouchUpInside];
    [btn1 setBackgroundImage:[[UIImage imageNamed:@"fanhui"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] forState:UIControlStateNormal];
    
    UIBarButtonItem *item = [[UIBarButtonItem alloc]initWithCustomView:btn1];
    self.navigationItem.leftBarButtonItem  = item;
    
    
}

-(void)onClick:(UIButton *)btn{
    [self.navigationController popViewControllerAnimated:YES];
    
}

- (IBAction)jixainClikck:(id)sender {
    
    TwoViewController * vc = [[TwoViewController alloc] init];
    vc.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:vc animated:YES];
    

}

- (IBAction)Click:(id)sender {
    JiXiangViewController * VC = [[JiXiangViewController alloc] init];
    VC.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:VC animated:YES];
}

- (IBAction)clicke:(id)sender {
    
    
    VideoOtherViewController * vc = [[VideoOtherViewController alloc] init];
    vc.hidesBottomBarWhenPushed = YES;
    [self .navigationController pushViewController:vc animated:YES];

    
}



- (IBAction)Cclick:(id)sender {
    
    PlayerVideoViewController * VC= [[PlayerVideoViewController alloc] init];
    VC.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:VC animated:YES];
    
   
}
- (IBAction)FOUT:(id)sender {
    
     ThreeViewController * VC = [[ThreeViewController alloc] init];
    VC.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:VC animated:YES];
    
}


- (IBAction)cLICK:(id)sender {
    
    FourViewController * VC = [[ FourViewController alloc] init];
    VC.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:VC animated:YES];
}
- (IBAction)SIXcLICK:(id)sender {
}
- (IBAction)SEVENcLICK:(id)sender {
}

@end
